package com.jeespring.designpattern.strategy;

/**
 * @Title: StrategyContext
 * @Description:
 * @Author 张朝阳
 * @Date 2021/1/4 23:02
 */
public class StrategyContext {

    private Strategy strategy;

    public StrategyContext(Strategy strategy) {
        this.strategy = strategy;
    }

    public int execute(int num1,int num2){
        return strategy.operate(num1,num2);
    }
}
